package typeCheck;

import java.util.LinkedHashMap;

public class InterfaceType extends Type {

    private LinkedHashMap<String, FunctionType> methods;
    public InterfaceType(String name) {
        super(name, TypeEnum.INTERFACE);
        this.methods = new LinkedHashMap<>();
    }

    public LinkedHashMap<String, FunctionType> getMethods() {
        return this.methods;
    }

    public void addMethod(FunctionType func) {
        this.methods.put(func.name, func);
    }
}
